package com.itqf.controller;

import com.itqf.service.UserService;

/**
 * projectName: springframeworkgp8
 *
 * @author: 赵伟风
 * time: 2021/8/2 14:42
 * description:
 */
public class UserController {

    private UserService userService = null;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }


    public void login(String username,String password){

        boolean login = userService.login(username, password);

        if (login) {

            System.out.println(username+":登录成功!");
        }else{
            System.out.println(username+":登录失败!");
        }

    }
}
